package com.test.spring;

import com.test.spring.bean.Person;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) {
        runSpring();
    }

    private static void runSpring() {
        final ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("beans.xml");
        final Person person = (Person) context.getBean("person");
        System.out.println(person);
    }
}
